export default (listeners = {}) => {
    return {
        itemStyle: {padding: '0px 0px 0px 0px'},
        rules: {},
        formItems: [
            {
                field: 'title',
                type: 'input',
                label: '标题',
            },
            {
                field: 'toEmail',
                type: 'input',
                label: '收件人',
            },
            {
                field: 'copyEmail',
                type: 'input',
                label: '抄送人',
            },

            {
                field: 'content',
                type: 'textarea',
                label: '邮件内容',
                config: {
                    autosize: {minRows: 4, maxRows: 6},
                    maxlength: 2000,
                    showWordLimit: true,
                },
                layout: {
                    xl: {span: 24},
                    lg: {span: 24},
                    md: {span: 24},
                    sm: {span: 24},
                    xs: {span: 24},
                }
            },
            {
                field: 'filePath',
                type: 'input',
                label: '附件路径',
                layout: {
                    xl: {span: 24},
                    lg: {span: 24},
                    md: {span: 24},
                    sm: {span: 24},
                    xs: {span: 24},
                }
            },
            {
                field: 'remark',
                type: 'textarea',
                label: '备注',
                config: {
                    autosize: {minRows: 4, maxRows: 6},
                    maxlength: 500,
                    showWordLimit: true,
                },
                layout: {
                    xl: {span: 24},
                    lg: {span: 24},
                    md: {span: 24},
                    sm: {span: 24},
                    xs: {span: 24},
                }
            },

        ],
        colLayout: {
            xl: 12,
            lg: 12,
            md: 12,
            sm: 12,
            xs: 24,
        },
        elFormConfig: {
            labelWidth: '120px',
        },
    }
}
